#include <qevent.h>
#include <qdockwidget.h>

#include<iostream>

class DockWidgetWithCloseSignal : public QDockWidget
{
	   Q_OBJECT

public:
	explicit DockWidgetWithCloseSignal(const QString &, QWidget * = 0, Qt::WindowFlags = 0);
	explicit DockWidgetWithCloseSignal(QWidget * = 0, Qt::WindowFlags = 0);

protected:
	void closeEvent(QCloseEvent *event);

private:

signals:
	void plotClosed();

};